let b = {
  apFilePaths: ['https://resource/apml892fa0952fc371ee72c4b594327a5709.image'],
  apFilePathsV2: ['https://resource/apml892fa0952fc371ee72c4b594327a5709.image'],
  scene: 'assets',
  success: true,
  tempFilePaths: ['file:///data/user/0/com.eg.android.AlipayGphone/cache/mm_img_comp_1645152519671179723.jpg'],
  tempFiles: [{
    creationDate: 1593354305000,
    path: 'https://resource/apml892fa0952fc371ee72c4b594327a5709.image',
    size: 16618
  }]
};
let c = {
  apFilePaths: [
    'https://resource/apmlc22778cefbea8cb3f3f958d2ceb48b2e.image',
    'https://resource/apmld2cc179498ac3298af99b356c73d1f41.image'
  ],
  apFilePathsV2: [
    'https://resource/apmlc22778cefbea8cb3f3f958d2ceb48b2e.image',
    'https://resource/apmld2cc179498ac3298af99b356c73d1f41.image'
  ],
  scene: 'assets',
  success: true,
  tempFilePaths: [
    'file:///data/user/0/com.eg.android.AlipayGphone/cache/mm_img_comp_2991956618907165266.jpg',
    'file:///data/user/0/com.eg.android.AlipayGphone/cache/mm_img_comp_8472487396421175189.jpg'
  ],
  tempFiles: [{
    creationDate: 1593350792000,
    path: 'https://resource/apmlc22778cefbea8cb3f3f958d2ceb48b2e.image',
    size: 53205
  }, {
    creationDate: 1593354305000,
    path: 'https://resource/apmld2cc179498ac3298af99b356c73d1f41.image',
    size: 16618
  }]
};
var imgSrc = "https://img.alicdn.com/bao/uploaded/TB1qimQIpXXXXXbXFXXSutbFXXX.jpg";

function getBase64(img) {//传入图片路径，返回base64
  function getBase64Image(img, width, height) {//width、height调用时传入具体像素值，控制大小 ,不传则默认图像大小
    var canvas = document.createElement("canvas");
    canvas.width = width ? width : img.width;
    canvas.height = height ? height : img.height;

    var ctx = canvas.getContext("2d");
    ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
    return canvas.toDataURL();
  }

  var image = new Image();
  image.crossOrigin = '';
  image.src = img;
  var deferred = $.Deferred();
  if (img) {
    image.onload = function () {
      deferred.resolve(getBase64Image(image));//将base64传给done上传处理
    }
    return deferred.promise();//问题要让onload完成后再return sessionStorage['imgTest']
  }
}

let p = {
  "data":
    {
      "obj":[{
          "accessMode": "1",
          "additionInfo": "{width:640,height:492,type:JPEG}",
          "fileBytes": 19013,
          "fileExt": "jpeg",
          "fileId": "0e2n3-pjqr0g-00hyj",
          "fileSecurityCode": "23400dfbf5af46f3bd8066e643e0b3db",
          "fileSize": "18.56KB",
          "fileStatus": "1",
          "lockStatus": "0",
          "mimeType": "image/jpeg",
          "remarkName": "1593583088566.jpeg",
          "uploadBy": ":",
          "uploadTime": 1593583087000
        }],
      "status":
        200,
      "success":
        true
    }
  ,
  "status":
    200,
  "statusText":
    "unknown",
  "headers":
    {
      "content-type":
        "application/json;charset=UTF-8"
    }
  ,
  "config":
    {
      "url":
        "/gft/apt/upload", "data":
        {}
      ,
      "headers":
        {
          "Accept":
            "application/json, text/plain, */*"
        }
      ,
      "baseURL":
        "http://192.168.2.42:8088", "transformRequest":
        [null], "transformResponse":
        [null], "timeout":
        0, "withCredentials":
        false, "xsrfCookieName":
        "XSRF-TOKEN", "xsrfHeaderName":
        "X-XSRF-TOKEN", "maxContentLength":
        -1, "method":
        "post"
    }
  ,
  "request":
    {}
}
